package TraitementMessages;

import java.util.List;
import com.lo23.data.serializable.*;
import mainProcess.MainProcessing;
import ihm.main.Traitement;

/**
 * @class SearchPictureResultMessage
 * @author Vincent PALANCHER
 */
public class SearchPictureResultMessage extends PictureMessage {

    private List<PictureThumbnail> thumbnails;
    static final long serialVersionUID = 23201022L;

    public SearchPictureResultMessage (String senderUID, List<PictureThumbnail> thumbnails) {
        super(senderUID);
        this.thumbnails = thumbnails;
    }

    public void handleReceiption(MainProcessing mainProcessing) {
        // Transmission des images à l'IHM
        Traitement.getInstance().picturesSearchResults(this.thumbnails);
    }
}
